package com.tianhui.consignortwofei.api;


import com.fgs.common.CommonResponse;
import com.fgs.common.entity.CommonDataListInfo;
import com.tianhui.consignortwofei.mvp.model.enty.CarrierInfo;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * api service
 */
public interface CarrierApiService {

    //获取承运商列表
    @GET("smc/drivercarrier/list")
    Observable<CommonResponse<CommonDataListInfo<CarrierInfo>>> carrierList(@QueryMap Map<String, String> map);

    //添加/更新承运商
    @POST("smc/drivercarrier")
    Observable<CommonResponse> addCarrier(@Body CarrierInfo carrierInfo);


}


